/**
 * @file basic_error.hpp
 * @date 2021/05/25 15:05
 * 
 * @author harrybao (harrybao@123u.com)
 * 
 * @brief 基础服务错误码
 * 
 * @version v1.0.0
 * 
 * @copyright Copyright © 2021 All Rights Reserved 上海欢乐互娱网络科技有限公司
 * 
 * @par history:
 * <table>
 * <tr><th>Date                     <th>Version     <th>Author      <th>Description
 * <tr><td>2021/05/25 15:05         <td>1.0.0       <td>harrybao    <td>创建初始版本
 * </table>
 */

#include "error/error.hpp"
#include "guildservicebasic.enum.h"

namespace guildservicebasic_cpp {

guild_service::error_code make_error_code(ErrorCode e)
{
    return { static_cast<int>(e), theGuildServiceErrorCategory };
}

} // namespace guildservicebasic_cpp


namespace std {
template<>
struct is_error_code_enum<guildservicebasic_cpp::ErrorCode> : true_type {};
}

namespace guild_service {
using ErrorCode = guildservicebasic_cpp::ErrorCode;
}